﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace PYNET.Models
{
    public class ArticleRequest
    {
        /// <summary>
        /// 主键，文章ID
        /// </summary>
        [Key]
        public int AId { get; set; }
        /// <summary>
        /// 文章作者ID
        /// </summary>
        [Required]
        public int UId { get; set; }
        /// <summary>
        /// 文章作者全名(提交时)
        /// </summary>
        [Required]
        public string UserName { get; set; }
        ///<summary>
        ///文章标题
        ///</summary>
        [Required]
        public string Title { get; set; }
        /// <summary>
        /// 文章内容
        /// </summary>
        /// [Required]
        public string Introduce { get; set; }
        ///<summary>
        ///文章图片
        ///</summary>
        [Required]
        public string ArticlePicture { get; set; }
        [Required]
        public string Content { get; set; }
        /// <summary>
        /// 文章审批状态 0:Waiting 1:Accepted 2:Rejected
        /// </summary>
        public int status { get; set; }
    }
}
